package cn.stylefeng.guns.modular.car.entity;

import cn.stylefeng.roses.kernel.db.api.pojo.entity.BaseEntity;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;
import java.math.BigDecimal;

/**
 * 实例类
 *
 * @author xbz
 * @date 2023/04/07 14:21
 */
@TableName("t_car")
@Data
@EqualsAndHashCode(callSuper = true)
public class Car extends BaseEntity {

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ChineseDescription("id")
    private Integer id;

    /**
     * 车辆名称
     */
    @TableField("name")
    @ChineseDescription("车辆名称")
    private String name;

    /**
     * 车辆品牌
     */
    @TableField("brand_id")
    @ChineseDescription("车辆品牌")
    private Integer brandId;

    /**
     * 车辆拥有者id
     */
    @TableField("uid")
    @ChineseDescription("车辆拥有者id")
    private Long uid;

    /**
     * 车辆拥有者id
     */
    @TableField("img")
    @ChineseDescription("车辆图片")
    private String img;
    /**
     * 国标
     */
    @TableField("gb")
    @ChineseDescription("国标")
    private String gb;

    /**
     * 价格
     */
    @TableField("price")
    @ChineseDescription("价格")
    private BigDecimal price;

    /**
     * 购买时间
     */
    @TableField("buy_date")
    @ChineseDescription("购买时间")
    private Date buyDate;

}
